package com.score.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.score.mapper.IStudentMapper;
import com.score.pojo.TStudent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class StudentServiceImpl{
    @Autowired
    private IStudentMapper studentMapper;

    public TStudent getStudentInfo(String stunum) {
        QueryWrapper<TStudent> wrapper = new QueryWrapper<>();
        wrapper.eq("stu_num",stunum);
        return studentMapper.selectOne(wrapper);
    }

}
